package com.lizhi.rpc.controller;

import com.lizhi.rpc.handler.RecvAssessRecordHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/11/13 9:54
 */
@Slf4j
@RestController
@RequestMapping(value = "/api/rpc/assess")
public class RecvAssessRecordController {

    @Resource
    private RecvAssessRecordHandler recvAssessRecordHandler;

    @PostMapping(path = "/recvAssessRecord")
    public String recv(@RequestBody String json){
        return recvAssessRecordHandler.recvAssessRecord(json);
    }

}
